package com.example.helloword.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component //组件
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString

@ConfigurationProperties(prefix = "dog")
public class Dog {

 //   @Value("闫文超")
    private String yanName;
  //  @Value("55")
    private Integer age;

}
